<template>
  <div>
    <!-- <input v-model="hoddy" type="checkbox" value="science" />科幻
    <input v-model="hoddy" type="checkbox" value="comedy" />喜剧
    <input v-model="hoddy" type="checkbox" value="cartoon" />动漫
    <input v-model="hoddy" type="checkbox" value="adventure" />冒险
    <input v-model="hoddy" type="checkbox" value="technology" />科技
    <input v-model="hoddy" type="checkbox" value="military" />军事
    <input v-model="hoddy" type="checkbox" value="recreation" />娱乐
    <input v-model="hoddy" type="checkbox" value="sth" />奇闻 -->
    <span v-for="(item, index) in hoddy" :key="index">
      {{ item }}
      <input v-model="arr" type="checkbox" :value="item" />
    </span>
    <ul>
      <li v-for="item in arr" :key="item">
        {{ item }}
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: "Homework2App",

  data() {
    return {
      hoddy: ["科幻", "喜剧", "动漫", "冒险", "科技", "军事", "娱乐", "奇闻"],
      arr: [],
    };
  },

  mounted() {},

  methods: {},
};
</script>

<style lang="scss" scoped>
</style>